<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="./vue.js"></script>
</head>

<body>
    <div id="app">
        <table>
            <tbody>
                <tr is="row"></tr>
                <tr is="row"></tr>

                <hr>
                <tr is="row"></tr>
                <tr is="row"></tr>
            </tbody>
        </table>
    </div>
    <script>
        Vue.component("row", {
            data() {
                return {
                    content: "我是一个组件的正确写法"
                }
            },
            template: "<tr><td>{{content}}</td></tr>"
        })
        new Vue({

            el: "#app",
            data: {

            },


            methods: {

            },
        })
    </script>
</body>

</html>